package com.service.impl;

import com.dao.myfileDao;
import com.domain.Page;
import com.domain.myfile;
import com.service.myfileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
@Service("myfile")
public class myfileServiceimpl implements myfileService {
    @Autowired
    private myfileDao myfiledao;
    @Override
    public myfile findfileByfilename(String filename) {
        System.out.println("成功");
        return myfiledao.findfileByfilename(filename);
    }

    @Override
    public void inservalueintotable(myfile file) {
       myfiledao.inservalueintotable(file);
    }

    @Override
    public List<myfile> findAllfile() {
        return myfiledao.findAllfile();
    }

    @Override
    public void updateFileloadtimeByfilename(int times,String filename) {
        myfiledao.updateFileloadtimeByfilename(times,filename);
    }

    @Override
    public List<myfile> findfileBytype(String type) {
        return myfiledao.findfileBytype(type);
    }

    @Override
    public List<myfile> findBypage(int start,int end) {
        return myfiledao.findBypage( start, end);
    }

    @Override
    public int selectCount() {
        return myfiledao.selectCount();
    }


}
